package com.wantupai.translate.utils;

import android.content.res.Resources;

/**
 * @author luxuchang
 * @date 2019/4/25 0025
 * @description
 */
public class DimensionUtil {
    public static int dpToPx(int dp) {
        return (int) (dp * Resources.getSystem().getDisplayMetrics().density);
    }
}
